#pragma once

#include<iostream>

#define Die(code)   \
    do              \
    {               \
        exit(code); \
    } while (0)

#define CONV(V) (struct sockaddr *)(V)

enum
{
    USAGE_ERR = 1, //使用错误
    SOCKET_ERR,    //创建套接字错误
    BIND_ERR       //绑定错误
};